package com.ruoyi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.domain.entity.ProjectAllocation;
import com.ruoyi.project.domain.entity.ProjectFee;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface ProjectAllocationMapper extends BaseMapper<ProjectAllocation> {

    @Delete("DELETE FROM project_allocation WHERE project_no = #{projectNo} and current = #{current}")
    void deleteByProjectNo(@Param("projectNo") String projectNo,@Param("current") String current);


    @Delete("DELETE FROM project_allocation_detail WHERE project_no = #{projectNo} and current = #{current}")
    void deleteByProjectNoDetail(@Param("projectNo") String projectNo,@Param("current") String current);

}
